<?php 
set_time_limit(0);

$hao='M3304561815, M3304379470, M3304345319, M3301672929, M3304421477, M3301668942, M3300576032, M3300528776, M3300446193, M3301554525, M3304382558, M3301764557, M3304741495, M3302872426, M3301172808, M3304530776, M3302929661, M3304733734, M3300285789, M3300285789, M3300398538, M3300258585, M3300201341, M3304732312, M3304604703, M3300508872, M3300553254, M3304681105, M3304670762, M3300417410, M3301646694, M3301527412, M3300675111, M3304638747, M3304393654, M3303928306, M3304673287, M3304396840, M3300414028, M3301105456';

$getHao=explode(',', $hao);

var_dump($getHao);

exit;


require_once  'data/PHPExcel.php';
function format_excel2array($filePath='',$sheet=1){
	if(empty($filePath) or !file_exists($filePath)){die('file not exists');}
	$PHPReader = new PHPExcel_Reader_Excel2007();        //建立reader对象
	if(!$PHPReader->canRead($filePath)){
		$PHPReader = new PHPExcel_Reader_Excel5();
		if(!$PHPReader->canRead($filePath)){
			echo 'no Excel';
			return ;
		}
	}
	$PHPExcel = $PHPReader->load($filePath);        //建立excel对象
	$currentSheet = $PHPExcel->getSheet($sheet);        //**读取excel文件中的指定工作表*/
	$allColumn = $currentSheet->getHighestColumn();        //**取得最大的列号*/
	$allRow = $currentSheet->getHighestRow();        //**取得一共有多少行*/
	$data = array();
	for($rowIndex=1;$rowIndex<=$allRow;$rowIndex++){        //循环读取每个单元格的内容。注意行从1开始，列从A开始
		for($colIndex='A';$colIndex<=$allColumn;$colIndex++){
			$addr = $colIndex.$rowIndex;
			$cell = $currentSheet->getCell($addr)->getValue();
			if($cell instanceof PHPExcel_RichText){ //富文本转换字符串
				$cell = $cell->__toString();
			}
			$data[$rowIndex][$colIndex] = $cell;
		}
	}
	return $data;
}


$fileName='fu.xlsx';
 
$filePath = $fileName;

$data = format_excel2array($filePath, 0);
 
$k=1;
$hao=array();
foreach ($data as $k => $v){
	if (!empty($v['A']) && $k > 1){
		 $hao[]=$v['A'];
	}
	$k++;
}

echo implode(', ', $hao);

//var_dump($hao);

